package com.pengcheng.taskapplication.mvp.view.activity;

import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.pengcheng.taskapplication.R;
import com.pengcheng.taskapplication.contants.ConstantValue;
import com.pengcheng.taskapplication.model.SubscribeOrderModel;
import com.pengcheng.taskapplication.mvp.presenter.UserPresenter;
import com.pengcheng.taskapplication.net.IView;
import com.pengcheng.taskapplication.util.ToastUtils;

import java.io.IOException;

import butterknife.BindView;
import butterknife.OnClick;
import okhttp3.ResponseBody;

/**
 * Created by ZFT on 2020/10/28.
 */

public class AboutUsActivity extends BaseActivity implements IView{

    @BindView(R.id.tv_center_title)
    TextView tv_center_title;
    public String phoneNumber;


    @Override
    protected int layoutResID() {
        return R.layout.activity_about_app;
    }

    @Override
    protected void initData() {
        tv_center_title.setText("关于我们");
    }


    @Override
    public void onSuccess(String code, String msg, Object data, String actionType) {

    }

    @Override
    public void onFailed(String code, String msg) {

    }

    @OnClick({R.id.img_back,R.id.rl_app_info,R.id.rl_call})
    public void onViewClicked(View view) {
        Intent intent;
        switch (view.getId()) {
            case R.id.img_back:
                finish();
                break;
            case R.id.rl_app_info:
                //软件介绍
                intent = new Intent(context, Html5Activity.class);
                intent.putExtra("url","file:///android_asset/softwareIntroduction.html");
                intent.putExtra("title","软件介绍");

                startActivity(intent);
                break;
            case R.id.rl_call:
                //电话
                Intent dialIntent =  new Intent(Intent.ACTION_DIAL, Uri.parse("tel:" + phoneNumber));//跳转到拨号界面，同时传递电话号码
                startActivity(dialIntent);
                break;
        }
    }



}
